<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="false" %>

<script>
$(document).ready(function() {
	$("#all_checkbox").click(function() {
		var check = $("#all_checkbox").is(":checked"); 

	    $("input[name='chkSign']:checkbox").each(function(){ 
	    	$(this).prop("checked", check);
	    }); 
	});
});
</script>

<!-- 콘텐츠 영역 -->
    <div id="BodyWrap">
        <section>
            <h4 class="pag_title">나의 찜 목록</h4>
            <div id="ContentWrap4">
            	<div class="mar_b10">
                	<div class="inp_ckb">
                        <input type="checkbox" class="ckb" name="all_checkbox" id="all_checkbox">
                        <label for="all_checkbox">전체선택</label>
                    </div>
                </div>
                <ul class="showwindow_list3">
                	<c:forEach items="${requestScope.itemList }" var="items" varStatus="status">
	                	<li>
	                    	<div class="inp_ckwrap2">
	                        	<div class="inp_ckb2">
	                            	<input type="checkbox" class="ckb" name="chkSign" id="chkSign${status.index}" value="${items.PRDCD}_${items.SAPCD}">
	                                <label for="all_checkbox">&nbsp;</label>
	                            </div>
	                        </div>
	                    	<a href="${contextPath}/vhmall/item_detail.vh?prdcd=${items.PRDCD}" class="thumb">
	                            <img src="http://www.vhmall.co.kr/inc/imgLoad.jsp?dirName=product/${items.CORPNO}/&fileName=${items.PRDIMG1_ENC}&thumb=Y&quality=100&size=230" alt="">
	                        </a>
	                        <div class="windowinfo_area">
	                            <a href="${contextPath}/vhmall/item_detail.vh?prdcd=${items.PRDCD}" class="title">
	                            	<span style="color:#e42526;font-weight:bold;">${items.PREPROMOTE}</span>
	                            	${items.PRDNM }
	                            	<span style="color:#666;">${items.ENDPROMOTE}</span></a>
	                            </a>
	                            <p class="price">
	                            	<c:if test="${items.CPNPRC!=null}">
		                                <span class="discount"><em>${items.SELPRC}</em>원</span>
		                                ${items.CPNPRC}원
	                                </c:if>
	                                <c:if test="${items.CPNPRC==null}">
	                                	${items.SELPRC}원
	                                </c:if>
	                            </p>
	                            <p class="btnposition_box">
	                                <a href="#" class="btn_inlistyle1 gradation_gray1" title="삭제하기">삭제하기</a>
	                                <a href="#" class="btn_inlistyle1 gradation_gray1 ftc_darkred" title="1:1문의">1:1문의</a>
	                            </p>
	                        </div>
	                    </li>
	                   </c:forEach>
                </ul>
                <div class="btnposition_itembuy">
                    <div class="btnwline3">
                        <a href="#" class="cart" title="장바구니 담기">장바구니 담기</a>
                        <a href="#" class="delete" title="삭제하기">삭제하기</a>
                        <a href="#" title="주문하기">주문하기</a>
                    </div>
                </div>
            </div>
        </section>
        <!--// 콘텐츠 영역 -->